package com.situ.mall.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {
    Logger logger = LoggerFactory.getLogger(HelloController.class);


    @RequestMapping("/hello")
    @ResponseBody
    public String hello() {
        System.out.println("HelloController.hello");
        logger.debug("debug: hello");
        logger.info("info: hello");
        logger.warn("warn: hello");
        logger.error("error: hello");

        return  "hello";
    }
}
